<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>T3D: T3D::Math Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">T3D
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>T3D</b></li><li class="navelem"><a class="el" href="class_t3_d_1_1_math.html">Math</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_t3_d_1_1_math-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">T3D::Math Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abcbdd39951036f9754a4c6eadcc40ad0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abcbdd39951036f9754a4c6eadcc40ad0"></a>
static float&#160;</td><td class="memItemRight" valign="bottom"><b>lerp</b> (float first, float second, float t)</td></tr>
<tr class="separator:abcbdd39951036f9754a4c6eadcc40ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fd3bf73deeeb1ab46a06990331a9b41"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fd3bf73deeeb1ab46a06990331a9b41"></a>
static float **&#160;</td><td class="memItemRight" valign="bottom"><b>generateFractal</b> (int size, float min, float max, float roughness, bool tile=false)</td></tr>
<tr class="separator:a7fd3bf73deeeb1ab46a06990331a9b41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a944cc677af0d20fc4ba3d62d20c1fe10"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_math.html#a944cc677af0d20fc4ba3d62d20c1fe10">randRange</a> (float minimum, float maximum)</td></tr>
<tr class="separator:a944cc677af0d20fc4ba3d62d20c1fe10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34fe3050ca6e140ee1133e402da57c60"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_math.html#a34fe3050ca6e140ee1133e402da57c60">randRangeND</a> (float minimum, float maximum, int iterations=3)</td></tr>
<tr class="separator:a34fe3050ca6e140ee1133e402da57c60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c32219f3c21d6361759a617622f13b2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c32219f3c21d6361759a617622f13b2"></a>
static float&#160;</td><td class="memItemRight" valign="bottom"><b>clamp</b> (float value, float minimum, float maximum)</td></tr>
<tr class="separator:a2c32219f3c21d6361759a617622f13b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a5aa087b985546a5d62275ef4a3f221fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5aa087b985546a5d62275ef4a3f221fe"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>PI</b> = float( 4.0 * atan( 1.0 ) )</td></tr>
<tr class="separator:a5aa087b985546a5d62275ef4a3f221fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5831c40f540c5f8b10c44c00f9b29b1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5831c40f540c5f8b10c44c00f9b29b1"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>TWO_PI</b> = float( 2.0 * PI )</td></tr>
<tr class="separator:ae5831c40f540c5f8b10c44c00f9b29b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16a399b68b3130a1bad1b5ebc06da073"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16a399b68b3130a1bad1b5ebc06da073"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>HALF_PI</b> = float( 0.5 * PI )</td></tr>
<tr class="separator:a16a399b68b3130a1bad1b5ebc06da073"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6aa28fc55016509796f13e607506b3b4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6aa28fc55016509796f13e607506b3b4"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>DEG2RAD</b> = PI / float(180.0)</td></tr>
<tr class="separator:a6aa28fc55016509796f13e607506b3b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3509addc0e493d25677f4b73aebb58d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3509addc0e493d25677f4b73aebb58d"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>RAD2DEG</b> = float(180.0) / PI</td></tr>
<tr class="separator:ae3509addc0e493d25677f4b73aebb58d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e4f590c0c2bc9a0a9353023016f750b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e4f590c0c2bc9a0a9353023016f750b"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>LOG2</b> = log(float(2.0))</td></tr>
<tr class="separator:a1e4f590c0c2bc9a0a9353023016f750b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a944cc677af0d20fc4ba3d62d20c1fe10"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float T3D::Math::randRange </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>minimum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maximum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>randRange Generates a random value in a given range </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minimum</td><td>range from </td></tr>
    <tr><td class="paramname">maximum</td><td>range to </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a34fe3050ca6e140ee1133e402da57c60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float T3D::Math::randRangeND </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>minimum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maximum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>iterations</em> = <code>3</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>randRangeND Generates a random value in a given range with an approximation of a normal distribution, uses Central limit theorem. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minimum</td><td>range from </td></tr>
    <tr><td class="paramname">maximum</td><td>range to </td></tr>
    <tr><td class="paramname">maximum</td><td>iterations (more for better distribution curve) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>M:/T3Dwin/T3DShaderVersion/T3D/T3D/<a class="el" href="_math_8h_source.html">Math.h</a></li>
<li>M:/T3Dwin/T3DShaderVersion/T3D/T3D/Math.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 27 2014 10:39:52 for T3D by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
